<?php
class Users{
	private $username;
	private $password;
	private $last_login;
	
	//constructor
	function __construct($username,$password,$last_login){
		$this->username=$username;
		$this->password=$password;
		$this->last_login=$last_login;
	}
	
	//others functions
	
	//getters for username,password and last_login
// 	public function getUserName(){
// 		return $this->username;
// 	}
	
// 	public function getPassword(){
// 		return $this->password;
// 	}
	
// 	public function getLastLogIn(){
// 		return $this->last_login;
// 	}

	function __get($field){
		if (property_exists($this, $field)){
			return $this->$field;
		}
		else return NULL;
	}
}
?>